import Vue from 'vue'
import Router from 'vue-router'
import DataSourceList from '@/pages/datasource/datasourcelist'
import QuartzList from '@/pages/quartz/quartzlist'
import EsbPlus from '@/pages/esb/esbplus'
import Layout from '@/pages/layout'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Layout,
      meta: { title: '首页' },
      children: [
        // {
        //   path: '/',
        //   name: 'Home',
        //   component: Home
        //   // meta: { title: '首页2' }
        // },
        {
          path: '/datasource',
          name: 'datasource',
          component: DataSourceList,
          meta: { title: '系统管理 / 数据源管理' }
        },
        {
          path: '/quartz',
          name: 'quartz',
          component: QuartzList,
          meta: { title: '系统管理 / 调度管理' }
        },
        {
          path: '/esbplus',
          name: 'esbplus',
          component: EsbPlus,
          meta: { title: '系统管理 / 服务编排列表' }
        }
      ]
    }
  ]
})
